package org.example.service.impl;

import org.example.mapper.CouplealbumMapper;
import org.example.pojo.Couplealbum;
import org.example.service.CouplealbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CouplealbumServiceImpl implements CouplealbumService {

    @Autowired
    private CouplealbumMapper couplealbumMapper;

    @Override
    public void addCoupleAlbum(Integer userId, String albumName, String url) {
        couplealbumMapper.addCoupleAlbum(userId, albumName, url);
    }

    @Override
    public List<Couplealbum> list(Integer userId) {
        return couplealbumMapper.list(userId);
    }

    @Override
    public void editcoupleAlbum(String id, String albumName, String url) {
        couplealbumMapper.editcoupleAlbum(id, albumName, url);
    }

    @Override
    public void deleteCoupleAlbum(String id) {
        couplealbumMapper.deleteCoupleAlbum(id);
    }
}
